package com.qianfeng.mapper;

import com.qianfeng.pojo.RoleMenuExample;
import com.qianfeng.pojo.SysRoleMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/16 16:01
 */
@Repository
public interface RoleMenuMapper {
    long countByExample(RoleMenuExample example);

    int deleteByExample(RoleMenuExample example);

    int deleteByPrimaryKey(SysRoleMenu key);

    int insert(SysRoleMenu record);

    int insertSelective(SysRoleMenu record);

    List<Long> selectMenuIdByRoleId(Long roleId);

    List<SysRoleMenu> selectByExample(RoleMenuExample example);

    int updateByExampleSelective(@Param("record") SysRoleMenu record, @Param("example") RoleMenuExample example);

    int updateByExample(@Param("record") SysRoleMenu record, @Param("example") RoleMenuExample example);
}